﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/MenuAdministrador.master" AutoEventWireup="true" CodeBehind="RevisionDeRendicion.aspx.cs" Inherits="Rendiciones.Web.Administrador.RevisionDeRendicion" %>
<%@ Register Src="ctrlEditarGasto.ascx" TagPrefix="uc1" TagName="ctrlEditarGasto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <asp:UpdatePanel runat="server" ID="upRendicion">
        <ContentTemplate>
            <div class="w970 vs12_light_form">
                <asp:Label runat="server" Visible="False" ID="lblEstado" Text="" />    
                <div class="title">
                    <p><asp:Label runat="server" ID="lblTitulo" Text="Rendicion Nro: " /></p>
                    <p align="right"><asp:Label runat="server" ID="lblusuarioIngreso" Text="Usuario Ingreso: " /></p>
                </div>
                <div class="content">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Proyecto"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" runat="server" Width="260px" Enabled="False"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Centro de Costo"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox1" runat="server" Width="250px" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Fondo Asignado" />
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server" Width="250px" ReadOnly="True"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="Saldo" />
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" Width="250px" ReadOnly="True"/>
                            </td>
                        </tr>
                    </table>
                    &nbsp;
                    <asp:GridView ID="grRendicion" runat="server" CssClass="vs12_light_grid_trdl_alt pd5p" AutoGenerateColumns="False" OnRowCommand="grRendicion_RowCommand" OnSelectedIndexChanged="grRendicion_SelectedIndexChanged">
                        <AlternatingRowStyle BackColor="White" CssClass="alt" ForeColor="#284775" />
                            <Columns>
                                <asp:BoundField DataField="IdGasto" HeaderText="IdGasto" Visible="False" />
                                <%--<asp:BoundField DataField="NroGasto" HeaderText="Nro. Gasto" />--%>
                                <asp:BoundField DataField="StrFechaDocumento" HeaderText="Fecha Docto." />
                                <asp:BoundField DataField="DescripcionTipoGasto" HeaderText="Tipo Gasto" />
                                <asp:BoundField DataField="DescripcionTipoDocumento" HeaderText="Tipo Documento" />
                                <asp:BoundField DataField="NroDocumento" HeaderText="Nro. Documento" />
                                <asp:BoundField DataField="RutBeneficiario" HeaderText="Proveedor/Beneficiario" />
                                <asp:BoundField DataField="Descripcion" HeaderText="Descripción">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <%--<asp:BoundField DataField="Entrada" HeaderText="Entrada">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>--%>
                                <%--<asp:BoundField DataField="Salida" HeaderText="Salida" />--%>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="btnEditar" runat="server" Text="" CssClass="btnEditar" CommandName="Editar" CommandArgument='<%# Container.DataItemIndex %>' ToolTip="Ver"/>
                                    </ItemTemplate>
                                    <HeaderStyle Width="5%"/>
                                </asp:TemplateField>
                            </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" CssClass="pgr" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    &nbsp;
                    <asp:Label ID="lblTotalPagado" Text="Total Pagado : 0" runat="server" />
                    &nbsp;
                    <asp:Panel runat="server" ID="pnlComentariosAdmin">
                        <asp:Button ID="btnAgregarComentario" runat="server" Text="Agregar Comentario" class="icnBtnGuardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" OnClick="btnAgregarComentario_Click" Width="165px" />
                            &nbsp;

                        <div align="center">
                            <asp:TextBox runat="server" ID="txtComentariosSupervisor" Width="98%" TextMode="MultiLine" Wrap="True" Height="60px" Visible="False"/>    
                        </div>
                        &nbsp;
                    </asp:Panel>

                    <asp:Panel runat="server" ID="pnlBotonesAdmin">
                        <asp:Button ID="btnRechazar" runat="server" Text="Rechazar" class="icnBtnGuardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" OnClick="btnRechazar_Click" Width="165px" />
                            &nbsp;
                        <asp:Button ID="btnAprobar" runat="server" Text="Aprobar" class="icnBtnGuardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" OnClick="btnAprobar_Click" Width="165px" />
                            &nbsp;
                        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" class="icnBtnGuardar" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="165px" OnClick="btnCancelar_Click" />
                    </asp:Panel>
                </div>
            </div>
            <uc1:ctrlEditarGasto runat="server" id="ctrlEditarGasto" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
